package com.woniuxy.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class User implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 9049707631529611819L;
	
	private Integer id;
	private Integer did;
	private String telephone;
	private String realname;
	private Date birthday;
	private String headimg;
	private Integer available;
	private String password;
	private Dept dept;
	private List<Role> roles;
	public User() {
		super();
		// TODO Auto-generated constructor stub
	}
	public User(Integer id, String telephone, String realname, Date birthday, String headimg, Integer available) {
		super();
		this.id = id;
		this.telephone = telephone;
		this.realname = realname;
		this.birthday = birthday;
		this.headimg = headimg;
		this.available = available;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getHeadimg() {
		return headimg;
	}
	public void setHeadimg(String headimg) {
		this.headimg = headimg;
	}
	public Integer getAvailable() {
		return available;
	}
	public void setAvailable(Integer available) {
		this.available = available;
	}
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	public Integer getDid() {
		return did;
	}
	public void setDid(Integer did) {
		this.did = did;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", did=" + did + ", telephone=" + telephone + ", realname=" + realname + ", birthday="
				+ birthday + ", headimg=" + headimg + ", available=" + available + ", password=" + password + ", dept="
				+ dept + ", roles=" + roles + "]";
	}
	
	
	

	
	

	
}
